<?php
include "includes/ui.php";

echo headerHTML("master","ระดับชั้นเรียน");
?>
<script>
var tb="class_level";
</script>
<!-- Moldule: Popup -->
<div id="popup" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">

        <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3 id="myModalLabel"><i class="icon-cog"></i> ระดับชั้นเรียน</h3>
        </div>
	<form class="form-horizontal">
        <div class="modal-body">
			
			<div class="control-group">
					<label class="control-label" for="inputName"><i class="icon-double-angle-right"></i> ระดับชั้น</label>
					<div class="controls">
							<input type="text" id="txtName"  placeholder="ระดับชั้น">
					</div>
			</div>
			<div class="control-group">
					<label class="control-label" for="inputName"><i class="icon-double-angle-right"></i> ตัวย่อ</label>
					<div class="controls">
							<input type="text" id="txtAlian"  placeholder="">
					</div>
			</div>
			<div class="control-group">
					<label class="control-label" for="inputRepeat"><i class="icon-double-angle-right"></i> สถานะการใช้งาน</label>
					<div class="controls">
						<label class="radio">
							<span>
								  <input type="radio" id='chkY' name="chk" value="Y" checked> 
							</span>
						   ใช้งาน
						</label>
						  <label class="radio">
							<span>
								<input type="radio" name="chk" id='chkN' value="N" > 
							</span>
						   ยกเลิกใช้งาน
						</label>
					</div>
			</div>

               
        </div>

        <div class="modal-footer">
            <button type='submit' class="btn btn-primary" id="btnSave">บันทึก</button>
			<button class="btn" data-dismiss="modal" aria-hidden="true">ยกเลิก</button>
        </div>
	</form>
</div> 
<!-- / Module: Popup --> 
<!-- Live Stats -->
<div class="row-fluid">

    <!-- Pie: Box -->
    <div class="span12">

        <!--  : Top Bar -->
        <div class="top-bar">
            <h3><i class="icon-cog"></i> ระดับชั้นเรียน</h3>
            <div class='tmp' style='float:right'>
				<a href="#"  ><button class="btn"  style='width:80px;' id='btnPrintDraft' tooltip="Add">พิมพ์</button></a>
			<?php if ($add == 1){ ?>
                <a href="#popup" data-toggle="modal"><button id="btnAdd"  class="btn btn-primary" tooltip="Add">เพิ่ม</button></a>
			<?php }?>
            </div>
        </div>
        <!-- /  : Top Bar -->



        <!-- Pie: Content -->
        <div class="well no-padding">


            <table class="data-table" id="resultData" >
                <thead style='border-top:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;'> 
                    <tr >
                        <th style='color:#333 !important;width:100px;'>#</th>
						<th style='color:#333 !important;'>0</th>
                        <th style='color:#333 !important;'>ระดับชั้นเรียน</th>
						<th style='color:#333 !important;width:100px;'>ตัวย่อ</th>
                        <th style='color:#333 !important;width:150px;' class="center">สถานะการใช้งาน</th>                         
                        <th style='color:#333 !important;width:100px;' class="center">แก้ไข</th>
                        <th style='color:#333 !important;width:100px;' class="center">ลบ</th>
                    </tr>
                </thead>
                <tbody>
                </tbody>

            </table>

        </div>
        <!-- / Pie: Content -->

    </div>
    <!-- / Pie -->

</div>
<!-- / Live Stats -->

<?php
echo footerHTML();
?>

<!-- Javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src='js/jquery.hotkeys.js'></script>
<!--script src='js/fullcalendar.min.js'></script-->
<script src="js/jquery-ui-1.10.2.custom.min.js"></script>
<script src="js/jquery.pajinate.js"></script>
<!--script src="js/jquery.prism.min.js"></script-->
<script src="js/jquery.dataTables.min.js"></script>

<script src="js/jquery.flot.resize.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-wysiwyg.js"></script>
<!--script src="js/bootstrap-typeahead.js"></script-->
<script src="js/jquery.easing.min.js"></script>
<script src="js/jquery.chosen.min.js"></script>
<script src="js/avocado-custom.js"></script>

<script src="js/jqBootstrapValidation.js"></script>

<script src="js/myScript/js_class_level.js"></script>

</html>